﻿<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<jsp:include page="../include/resource-head.jsp"/>
<body>
<jsp:include page="../include/common-top.jsp"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <jsp:include page="../include/common-menu.jsp"/>
        <div class="main-content">
            <div class="page-content">
                <div class="col-xs-12">
                    <div class="row-fluid">
                        <div class="widget-box">
                            <div class="widget-header widget-header-blue widget-header-flat">
                                <h4 class="lighter">
                                    <i class="icon-edit"></i>修改赛事
                                </h4>
                            </div>
                            <div class="widget-body">
                                <div class="widget-main">
                                    <div class="step-content row-fluid position-relative">
                                        <form class="form-horizontal" action="/schedule/update.do" method="post">
                                            <input type="hidden" name="id" value="${schedule.id}">
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">比赛球队(xxVSxx)</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" name="name" class="width-100"
                                                           value="${schedule.name}"/>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">比赛时间</label>
                                                <div class="col-xs-5 col-sm-5">
                                                    <input type="text" class="width-100" name="date"
                                                           value="${schedule.date}"/>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">比赛场地</label>
                                                <div class="col-xs-5 col-sm-5">
                                                    <input class="width-100" name="descript"
                                                           value="${schedule.descript}">
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">是否完成</label>
                                                <div class="col-xs-5 col-sm-5">
                                                    <select class="width-100" name="status">
                                                        <option value="no">未完成</option>

                                                        <option value="yes"
                                                                <c:if test="${schedule.status == 'yes'}">selected</c:if>>
                                                            已完成
                                                        </option>

                                                    </select>
                                                    <textarea>${schedule.result}</textarea>
                                                </div>
                                            </div>
                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-3 control-label no-padding-right">最后比分</label>
                                                <div class="col-xs-5 col-sm-5">
                                                    <input class="width-100" name="result" value="${schedule.result}">
                                                </div>
                                            </div>

                                            <hr/>
                                            <div class="row-fluid wizard-actions">
                                                <button class="btn" type="reset">重置</button>
                                                <button class="btn btn-success" type="submit">提交</button>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div><!-- /.page-content -->
        </div><!-- /.main-content -->
    </div><!-- /.main-container -->
</div>
</body>
<jsp:include page="../include/resource-script.jsp"/>
</html>

